package com.zte.claa.inficombo.csa.app.service.huaxiapr.bean;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.zte.claa.inficombo.csa.app.util.JsonUtils;

/*
 * Author by 0283000106 
 */

@JsonInclude(JsonInclude.Include.NON_NULL)
public class HuaXiaRmRspRs485Data {
	private List<Map<String, String>> rs485_data = new ArrayList<>();

	public List<Map<String, String>> getRs485_data() {
		return rs485_data;
	}

	public void setRs485_data(List<Map<String, String>> rs485_data) {
		this.rs485_data = rs485_data;
	}
	
	public Map<String, String> getRs485DataElement(int index){
		return rs485_data.get(index);
	}
	
	public void addRs485DataElement(Map<String, String> eMap){
		rs485_data.add(eMap);
	}
	
	public void removeRs485DataElement(Map<String, String> eMap){
		eMap.clear();
		rs485_data.remove(eMap);
	}
	
	public void clearRs485DataElement(){
//		Iterator<Map<String, String>> it = rs485_data.iterator();
//		while(it.hasNext()){
//			Map<String, String> x = it.next();
//		    x.clear();
//		}
		rs485_data.clear();
	}

	@Override
	public String toString() {
		String outputstr = JsonUtils.toJson(this);
		return outputstr;
	}
	
}
